package com.fancy.dao;

import com.fancy.pojo.BaseResult;
import com.fancy.pojo.category.Album;
import com.fancy.pojo.category.Music;
import com.fancy.pojo.dto.MusicDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IMusicDao {
    //
    List<Music> selectAllMusic();

    MusicDto selectMusicById(Integer id);

    List<MusicDto> selectMusicByAlbumId(Integer id);

    List<MusicDto> findAllMusic();

    List<Music> findMusicByName(String musicName);


    List<Music> getMusicById(@Param("music_type_id") Integer musicTypeId,@Param("singer_id") Integer singerId,@Param("language_id") Integer languageId);

    Music findMusicById(Integer id);

    List<MusicDto> findMusicByTypeId(Integer id);
    List<MusicDto> findMusicByLanguageId(Integer id);


}
